<%-- 
    Document   : new
    Created on : 09-abr-2012, 18:03:09
    Author     : dramos
--%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<div class="container">
    <h1>Nuevo Persona</h1><br/><br/>
    <form:form action="new" method="post" commandName="persona" cssClass="form-horizontal">
        <div class="row">
            <div class="control-group"> 
                <label>Numero Id:</label>
                <div class="controls">
                    <form:input path="idpers"></form:input>  
                    <form:errors path="idpers" cssstyle="color:red"></form:errors>
                </div>
                               
            </div>
                
                         
            <div class="control-group">
                <label>Tipo persona:</label>
                <div class="controls">
                    <form:input path="tippers"></form:input>
                    <form:errors path="tippers" cssstyle="color:red"></form:errors>
                </div>
            </div>
                             
            <div class="control-group">
                <label>Nombre:</label>
                <div class="controls">
                    <form:input path="nompers"></form:input>
                    <form:errors path="nompers" cssstyle="color:red"></form:errors>
                </div>
            </div>    
                
            <div class="control-group">
                <label>Apellido paterno:</label>
                <div class="controls">
                    <form:input path="appat"></form:input>
                    <form:errors path="appat" cssstyle="color:red"></form:errors>
                </div>
            </div>        
            
            <div class="control-group">
                <label>Apellido materno:</label>
                <div class="controls">
                    <form:input path="apmat"></form:input>
                    <form:errors path="apmat" cssstyle="color:red"></form:errors>
                </div>
            </div>    
                
            <div class="control-group">
                <label>Sexo:</label>
                <div class="controls">
                    <form:input path="sexo"></form:input>
                    <form:errors path="sexo" cssstyle="color:red"></form:errors>
                </div>
            </div>   
                
            <div class="control-group">
                <label>Tipo documento:</label>
                <div class="controls">
                    <form:input path="tipdoc"></form:input>
                    <form:errors path="tipdoc" cssstyle="color:red"></form:errors>
                </div>
            </div> 
            
            <div class="control-group">
                <label>Numero documento:</label>
                <div class="controls">
                    <form:input path="numdoc"></form:input>
                    <form:errors path="numdoc" cssstyle="color:red"></form:errors>
                </div>
            </div>    
                
            <div class="control-group">
                <label>Direccion electronica:</label>
                <div class="controls">
                    <form:input path="email"></form:input>
                    <form:errors path="email" cssstyle="color:red"></form:errors>
                </div>
            </div>  
                
            <div class="control-group">
                <label>Password:</label>
                <div class="controls">
                    <form:input path="passw"></form:input>
                    <form:errors path="passw" cssstyle="color:red"></form:errors>
                </div>
            </div> 
            
            <div class="control-group">
                <label>Fecha nacimiento (dd/mm/yyyy):</label>
                <div class="controls">
                    <form:input path="fecnac"></form:input>
                    <form:errors path="fecnac" cssstyle="color:red"></form:errors>
                </div>
            </div>        
                
            <div class="control-group">
                <label>Numero telefono:</label>
                <div class="controls">
                    <form:input path="nrocel"></form:input>
                    <form:errors path="nrocel" cssstyle="color:red"></form:errors>
                </div>
            </div>        
                              
                
        </div>
                
                
        <div class="actions" style="margin-left: 160px;">
            <input name="" value="Save" type="submit" class="btn btn-primary">
            <a style="margin-left: 5px;" href="<c:url value='/pages/usuarios/index'/>">Cancelar</a>
        </div>                
    </form:form>
</div>